Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

find_devs_with_openbsd: ensure we return the last entry #1149

Conversation

goneri
Copy link
Contributor

@goneri goneri commented Dec 10, 2021

sysctl -n hw.disknames returns a trailing \n. We need to clean
this up. In addition, the criteria matching system is a source of
problem because:

  • we don't have a way to look up the label of the partition
  • we've got situation where an ISO image can be exposed through a virtio
    block device.

So we just totally ignore the value of criteria. We end-up with a
slightly longer loop of mount-retry. But this way we're sure we don't
miss a configuration disk.

Tested on Kubvirt with the help of Brady Pratt @jbpratt.

`sysctl -n hw.disknames` returns a trailing `\n`. We need to clean
this up. In addition, the criteria matching system is a source of
problem because:

- we don't have a way to look up the label of the partition
- we've got situation where an ISO image can be exposed through a virtio
  block device.

So we just totally ignore the value of `criteria`. We end-up with a
slightly longer loop of mount-retry. But this way we're sure we don't
miss a configuration disk.

Tested on Kubvirt with the help of Brady Pratt @jbpratt.
@goneri goneri force-pushed the find_devs_with_openbsd-ensure-we-return-the-last-entry_28252 branch from 63b5fbc to 56bd4c9 Compare December 10, 2021 21:21
Copy link
Member

@TheRealFalcon TheRealFalcon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@TheRealFalcon TheRealFalcon merged commit f4692c5 into canonical:main Dec 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants